import axios from '@/libs/api.request'

export class ReceivableBillApi {
  // 获取应收账单管理列表数据
  static getReceivableBillList (params) {
    return axios.request({
      url: '/ReceivableBill/GetReceivableBillList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导入到款
  static importReceivableBill (params) {
    return axios.request({
      url: '/ReceivableBill/ImportReceivableBill',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出应收账单列表
  static exportReceivableBill (params) {
    return axios.request({
      url: '/ReceivableBill/ExportReceivableBill',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取到款项目
  static getReceiveProgramNames (params) {
    return axios.request({
      url: '/ReceivableBill/GetReceiveProgramNames',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 获取差额所属项目
  static getBalanceProgramNames (params) {
    return axios.request({
      url: '/ReceivableBill/GetBalanceProgramNames',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 获取差额所属编号
  static getBalanceNos (params) {
    return axios.request({
      url: '/ReceivableBill/getBalanceNos',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 添加应付账单信息
  static postReceivableBill (params) {
    return axios.request({
      url: '/ReceivableBill/PostReceivableBill',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取应到合计
  static getShouldArriveTotal (params) {
    return axios.request({
      url: '/ReceivableBill/GetShouldArriveTotal',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取实到明细列表
  static getReceivableBillDetailList (params) {
    return axios.request({
      url: '/ReceivableBill/GetReceivableBillDetailList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取应到明细列表
  static getShouldArriveDetailList (params) {
    return axios.request({
      url: '/ReceivableBill/GetShouldArriveDetailList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 银行到款管理
  static bankReceivableBill (params) {
    return axios.request({
      url: '/ReceivableBill/BankReceivableBill',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出银行到款列表
  static exportBankReceivableBill (params) {
    return axios.request({
      url: '/ReceivableBill/ExportBankReceivableBill',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取到款银行下拉选项
  static getCompanyBankInfos (params) {
    return axios.request({
      url: '/ReceivableBill/GetCompanyBankInfos',
      method: 'get',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 添加应收账单差额说明
  static postReceivableBalanceLog (params) {
    return axios.request({
      url: '/ReceivableBill/PostReceivableBalanceLog',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取应收账单展开明细
  static getReceivableBillListDetail (params) {
    return axios.request({
      url: '/ReceivableBill/GetReceivableBillListDetail',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 应收差额说明列表
  static getBalanceRemarks (params) {
    return axios.request({
      url: '/ReceivableBill/GetBalanceRemarks',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取差额所属项目
  static getBalanceProgramNames (params) {
    return axios.request({
      url: '/ReceivableBill/GetBalanceProgramNames',
      method: 'get',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取差额处理列表
  static getBalanceRemarksLog (params) {
    return axios.request({
      url: '/ReceivableBill/GetBalanceRemarksLog',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出收款单
  static exportCollectionDocReceived (params) {
    return axios.request({
      url: '/ReceivableBill/ExportCollectionDocReceived',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 资金流列表
  static cashFlowList (params) {
    return axios.request({
      url: '/ReceivableBill/CashFlowList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出现金流
  static exportCashFlow (params) {
    return axios.request({
      url: '/ReceivableBill/ExportCashFlow',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 资金流明细
  static cashFlowDetailList (params) {
    return axios.request({
      url: '/ReceivableBill/CashFlowDetailList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出资金流明细
  static exportCashFlowDetail (params) {
    return axios.request({
      url: '/ReceivableBill/ExportCashFlowDetail',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }
}
